package com.summer.springboot.jpa.service;

import com.summer.springboot.jpa.entity.User;

import java.util.List;

public interface UserService {

    User saveUser(User user);

    User getUserById(Long userId);

    List<User> getAll();

    void delByUserId(Long userId);

    int updateByName(Long userId, String name);
}
